package com.xxxx.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.seckill.pojo.Goods;
import com.xxxx.seckill.vo.GoodsVo;

import java.util.List;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author lulongfei
 * @since 2022-04-19
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 获取商品列表
     *
     * @return list 商品列表
     */
    List<GoodsVo> findGoodsVo();

    /**
     * 返回商品详情
     *
     * @param goodsId 商品主键
     * @return goodsVo
     */
    GoodsVo findGoodsVoByGoodsId(Long goodsId);
}
